/*
 * @Description: 菜单|权限列表
 * @Author: 0001100986/LiuShuai
 * @Date: 2021-06-07 14:15:35
 * @LastEditTime: 2021-06-07 17:26:46
 * @LastEditors: 0001100986/LiuShuai
 */

const state = {
  menuList: [],
  menuWidth: ''
};

const getters = {
  menu: (state) => state.menuList
};

const mutations = {
  setMenuList (state, list) {
    state.menuList = list;
  },
  setMenuWidth (state, e) {
    state.menuWidth = e;
  }
};

const actions = {
  setMenuList ({ commit }, e) {
    commit('setMenuList', e);
  },
  setMenuWidth ({ commit }, e) {
    commit('setMenuWidth', e);
  }
};

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions
};